#include "combobox.h"
#include "ui_combobox.h"

#include <QDebug>

ComboBox::ComboBox(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ComboBox)
{
    ui->setupUi(this);
    ui->comboBox->addItem("鸡腿堡");
    ui->comboBox->addItem("牛肉堡");
    ui->comboBox->addItem("巨无霸");

    ui->comboBox_2->addItem("薯条");
    ui->comboBox_2->addItem("鸡块");
    ui->comboBox_2->addItem("火腿");

    ui->comboBox_3->addItem("可乐");
    ui->comboBox_3->addItem("雪碧");
    ui->comboBox_3->addItem("芬达");
}

ComboBox::~ComboBox()
{
    delete ui;
}

void ComboBox::on_pushButton_clicked()
{
    qDebug() << ui->comboBox->currentText() << ", " << ui->comboBox_2->currentText() << ", " << ui->comboBox_3->currentText();
}
